﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;

namespace LogModel
{
    [ServiceContract]
    public interface ILogService
    {
        [OperationContract]
        ActionRecord AddAction(ActionRecord record);

        [OperationContract]
        void UpdateAction(ActionRecord record);

        [OperationContract]
        AppRunningRecord AddApplication(AppRunningRecord record);

        [OperationContract]
        void UpdateApplication(AppRunningRecord record);

        [OperationContract]
        ErrorRecord AddError(ErrorRecord record);

        [OperationContract]
        ExceptionRecord AddException(ExceptionRecord record);

        [OperationContract]
        JobRecord AddJob(JobRecord record);

        [OperationContract]
        void UpdateJob(JobRecord record);
    }
}
